package com.wll.store.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wll.store.user.dto.*;
import com.wll.store.user.entity.Address;
import com.wll.store.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-04
 */
public interface UserService extends IService<User> {

    User getUserInfoByNameAndPwd(UserInfo username);

    //添加用户
    boolean addUserInfo(UserInfo userInfo);

    //默认给用户添加admin角色
    boolean addRoleWithAdmin(Integer uid);

    User getUserInfoByName(String username);

//    Page<User> getUserPage(UserPageInfo userPageInfo);

    UserRole getUserRoleByUserId(Integer userId);

    boolean updateUserInfo(User user);

   boolean updateUserPassword(UserPassword userPassword);

}
